package com.wkbb.sports.enums;

public enum SportsStatusEnum {

    WAIT(0,"未开始"),
    PROGRESS(1,"进行中"),
    FINISH(2,"已结束"),
    CANCLE(3,"已取消");

    private SportsStatusEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private Integer value;

    private String desc;

    public Integer getValue() {
        return this.value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getDesc() {
        return this.desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static String getDesc(Integer value) {
        for (SportsStatusEnum fileType : SportsStatusEnum.values()) {
            if (fileType.getValue().intValue()==value) {
                return fileType.getDesc();
            }
        }
        return null;
    }
}
